<?php
$page = new BUIControl();
$activeOperation = Blyn::app()->getActiveOperation();
$menuList = array('商社导航|酒店', '商社导航|汽车', '商社导航|百货', '商社导航|电器', '商社导航|商品促销','商社乐购|品牌优惠','我的商社|我的抽奖','我的商社|我的订单','我的商社|投票管理');
//$operation = Blyn::app()->getActiveOperation();
$wxMenu = new BUIWXMenu($activeOperation);
?>
<p><?php echo $activeOperation->getUIManager()->getAjaxLink('testFollowEvent'); ?></p>
<?php
foreach ($menuList as $name) {
    $menu = $wxMenu->getChild($name);
  
    ?>
    <p><a href = "<?php echo $menu->getMenuUrl(); ?>" class = "btn" target="_blank"><?php echo $name; ?> </a></p>
    
<?php } ?>
<p><?php //echo $activeOperation->getUIManager()->getLink('testLinkToWechatPage', array('device' => BUIWXControl::WeChat_Name), NULL, NULL); ?></p>
<?php
if ($activeOperation->getUIManager()->isAjaxLinkClicked('testFollowEvent')) {
    $page->addRenderView('testFollowEvent', 'testFollowEvent');
} else {
    ?>
<h5> this is follow event page!</h5>
    <?php
}
$page->render();
?>